package maximumValue;

public class Solution {
    public int maximumValue(String[] strs) {
        int ans = 0;
        for (String s: strs) {
            try {
                ans = Math.max(Integer.parseInt(s),ans);
            } catch (NumberFormatException e) {
                ans = Math.max(s.length(),ans);
            }
        }
        // try catch 异常
        return ans;
    }
}
